#ifndef INPUTTESTMODEL_H_JM_20120820
#define INPUTTESTMODEL_H_JM_20120820
/** @file InpuTestModel.h
 * Generator modelu pre kontrolu vstupnych dat.
 * Generovany model len nacita data a vypise ich na vystup.
 **/

#include "../generators/ModelGenerator.h"
#include "../generators/Slices.h"

namespace jm4bbx {

	class  InputTestModel : public ModelGenerator {
	public:
		
		InputTestModel(const std::string& inputBoxName, 
			const std::string& outputBoxName,
			const std::string& typeName,
			const int columns) {
				
				BoxDescriptorPtr loadData = addBox(inputBoxName);
				BoxDescriptorPtr output = addBox(outputBoxName);


				//addSlice<PlainSlice<>>(getModelInputId(), loadData->getBoxId());

				//addSlice<PlainSlice<>>(loadData->getBoxId(), 
				//	output->getBoxId(), genTypes(typeName, columns));


				//addSlice<PlainSlice<>>(output->getBoxId(), getModelOutputId());

				addSlice(new PlainSlice(getModelInputId(), loadData->getBoxId()));

				addSlice(new PlainSlice(loadData->getBoxId(), 
					output->getBoxId(), 0, 0, genTypes(typeName, columns)));


				addSlice(new PlainSlice(output->getBoxId(), getModelOutputId()));
		}


	private:
	};

} // namespace jm4bbx


#endif
